import {createRouter, createWebHistory} from "vue-router";
import SonComp1 from "@/pages/SonComp1";
import SonComp2 from "@/pages/SonComp2";

const routes = [
    {
        path: '/s1',
        component: SonComp1
    },
    {
        path: '/s2',
        component: SonComp2
    }
]
const router = createRouter({
    history: createWebHistory(window.__POWERED_BY_QIANKUN__ ? '/v1' : '/'),
    routes
})
export default router;